package controler;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JRadioButton;

public class SelectDishToAddListener implements ActionListener{

	public static String CHOOSEDDISHTOADD;
	
	public SelectDishToAddListener(JRadioButton jrb){
		CHOOSEDDISHTOADD = jrb.getText()+"/"+jrb.getName();
	}
	
	public void actionPerformed(ActionEvent evt){
		JRadioButton source = (JRadioButton)evt.getSource();
		CHOOSEDDISHTOADD = source.getText()+"/"+source.getName();
	}
}
